/*
 * @Author: ZhaoZhiqi
 * @Date: 2023-10-13 10:46:43
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2023-10-13 14:52:55
 * @Description: 
 * @FilePath: \tuanfeng-mini\src\api\apanage.js
 */
import request from "./request";

/**
 * @description: 清单公示获取部门
 * @return {*}
 */
export function getInventoryDeptAPI() {
    return request(`depend/getInventoryDept`, "GET", {});
}

/**
 * @description: 事项办理获取部门
 * @return {*}
 */
export function getItemDeptAPI() {
    return request(`depend/getItemDept`, "GET", {});
}

/**
 * @description: 根据部门id获取清单公示
 * @return {*}
 */
export function getInventoryListAPI(data) {
    return request(`depend/getInventoryByDeptId/${data.id}`, "GET", data);
}

/**
 * @description: 根据清单id获取清单公示详情
 * @return {*}
 */
export function getInventoryDetailAPI(data) {
    return request(`depend/getInventoryById/${data.id}`, "GET", data);
}

/**
 * @description: 根据部门id获取事项办理
 * @return {*}
 */
export function getItemByDeptIdAPI(data) {
    return request(`depend/getItemByDeptId/${data.id}`, "GET", data);
}

/**
 * @description: 新增事项办理反馈
 * @return {*}
 */
export function addItemFeedbackAPI(data) {
    return request(`depend/addItemFeedback`, "POST", data);
}

/**
 * @description: 获取派单运行列表
 * @return {*}
 */
export function getOrderAPI(data) {
    return request(`depend/getOrderForMiniProg`, "GET", data);
}

/**
 * @description: 获取派单运行咨询投诉电话
 * @return {*}
 */
export function getOrderPhoneAPI(data) {
    return request(`depend/getOrderPhone`, "GET", data);
}

/**
 * @description: 获取派单运行详情
 * @return {*}
 */
export function getOrderDetailAPI(data) {
    return request(`depend/getOrderDetailsForMiniProg/${data.id}`, "GET", data);
}

/**
 * @description: 新增派单运行
 * @return {*}
 */
export function addOrderAPI(data) {
    return request(`depend/addOrder`, "POST", data);
}
